package com.zxw.common.core.base.enums;

import com.zxw.common.core.base.res.GobalResponseInterface;
import lombok.Getter;
import lombok.Setter;

public enum ResponseEnum implements GobalResponseInterface {
    OK(200, "成功！"),
    OK_ADD(200, "添加成功！"),
    OK_UPDATE(200, "更新成功！"),
    OK_DELETE(200, "删除成功！"),
    OK_SEND(200, "发送成功！"),



    //通用
    NORMAL_ERROR(10000,""),
    PRIMARY_KEY_CANNOT_BE_EMPTY(10001, "主键不能为空"),
    USER_ACCOUNT_PARAM_NOT_EQUEALS_LOGIN_USER_ACCOUNT(10002,"参数中的账号和当前登陆的账号不一致"),

    USERNAME_OR_PASSWORD_ERROR(20000,"用户名或者密码不正确！"),
    CLIENT_AUTHENTICATION_FAILED(20001,"客户端认证失败!"),
    TOKEN_INVALID_OR_EXPIRED(20002, "token无效或已过期"),
    AUTHORIZED_ERROR(20003, "访问权限异常"),
    EXIST_ACCOUNT(20004,"账户已被注册！"),
    INCORRECT_VERIFICATION_CODE(20005,"验证码不正确！"),
    VERIFICATION_CODE_CANNOT_BE_EMPTY(20006,"验证码不能为空！"),
    PASSWORD_ERROR(20007,"密码不正确！"),

    // toc 流程图
    FILE_TYPE_BE_EE_EMPTY(30001,"文件类型不能为空!"),

    ;

    @Getter
    @Setter
    private Integer code;

    @Getter
    @Setter
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


}
